package com.gpy.hospital.cms.dao;

import com.gpy.hospital.cms.pojo.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface BookMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Book record);

    Book selectByPrimaryKey(Integer id);

    List<Book> selectAll();

    int updateByPrimaryKey(Book record);

    List<Book> getByEmail(String email);


    List<Book> getByDoctorIdAndEmail(@Param("id") Integer id, @Param("email") String email);
}